package com.lagou;/**
 * Created by IntelliJ IDEA.
 * User: Yangdx.
 * Date: 2020/11/12.
 * Time: 21:33.
 * Tags: Code, we are serious.
 */

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author
 * @create 2020-11-12 21:33
 **/
@RestController
@RequestMapping(value = "/test")
public class TestController {

    @Resource
    private OrderService orderService;


    @GetMapping(value = "/add")
    public String add() {
        return orderService.add();
    }

    @GetMapping("/pay/{id}")
    public String pay(@PathVariable String id)
    {
        return orderService.pay(id);
    }
}
